package com.victor.service;

import java.util.HashMap;
import java.util.List;

import com.github.pagehelper.PageInfo;
import com.victor.entity.JingqubusinessShop;
import com.victor.entity.JingqubusinessShopclass;
import com.victor.entity.Jingqubusinessshop_photo;
import com.victor.entity.Parameter;
import com.victor.entity.Specifications;

public interface JbshopService {
	/**
	 * 查询独立景区商品
	 * @param page
	 * @param row
	 * @return
	 */
	PageInfo<JingqubusinessShop> selAll(int page, int row,Integer jbid);
	/**
	 * 修改
	 * @param jingqubusinessShop
	 * @return
	 */
	boolean update(JingqubusinessShop jingqubusinessShop);
	/**
	 * 根据id查询
	 * @param id
	 * @return
	 */
	JingqubusinessShop selShopById(Integer id);
	/**
	 * 根据条件查询
	 * @param hashMap
	 * @return
	 */
	List<JingqubusinessShop> selByCondition(HashMap<Object, Object> hashMap);
	/**
	 * 查询分类
	 * @param page
	 * @param row
	 * @return
	 */
	PageInfo<JingqubusinessShopclass> selShopclass(int page, int row);
	/**
	 * 插入商品
	 * @param shop
	 * @return
	 */
	boolean insert(JingqubusinessShop shop);
	/**
	 * 插入图片
	 * @param jingqubusinessshop_photo
	 * @return
	 */
	boolean insertShopphoto(Jingqubusinessshop_photo jingqubusinessshop_photo);
	/**
	 * 插入规格
	 * @param specifications
	 * @return
	 */
	boolean insertGuige(Specifications specifications);
	/**
	 * 插入参数
	 * @param parameter
	 * @return
	 */
	boolean insertParameter(Parameter parameter);
	/**
	 * 修改商品图片
	 * @param photo
	 * @return
	 */
	boolean updShopPhoto(Jingqubusinessshop_photo photo);
	/**
	 * 修改商品规格
	 * @param specifications
	 * @return
	 */
	boolean updGuige(Specifications specifications);
	/**
	 * 修改商品参数
	 * @param parameter
	 * @return
	 */
	boolean updParameter(Parameter parameter);
	/**
	 * 删除商品
	 * @param ids
	 * @return
	 */
	boolean delShop(int[] ids);
	/**
	 * 全部商品
	 * @param shopclassid 
	 * @return
	 */
	List<JingqubusinessShop> selAllShop(String[] shopclassid);

}
